import NetWorkTool from "./netWorkTool.js"

/**
 * 获取角色
 * 质量 roleId 4
 * 安全 roleId 5
 */
export function getGroupUser(ars) {
	return NetWorkTool.POSTFORM('/api/party-meeting/getGroupUser',ars,false);
}

/**
 * 添加会议纪要
 * @param {{
	"createUser": 0,
	"judgeUser": 0,
	"meetDescri": "",
	"meetingFile": "",
	"meetingName": "",
	"tasks": [
		{
			"executorUser": 0,
			"monitorUser": 0,
			"taskName": "",
			"taskScore": 0
		}
	]
}} ars 
 */
export function addMeetingByGroup(ars) {
	return NetWorkTool.POST('/api/party-meeting/addMeetingByGroup', ars,true);
}

/**
 * 总负责人处理会议任务
 * 		{check
       meetingId}
 */
export function checkMeetingByLeader(ars) {
	return NetWorkTool.POSTFORM('/api/party-meeting/checkMeetingByLeader', ars,true);
}

/**
 * 组长查看会议列表
 * 		{
	"current": 1,
	"pageSize": 10,
	"param": {
		"meetingName": "",
		"status": ""
	}
}
 */
export function getMeetingByGroup(ars) {
	return NetWorkTool.POST('/api/party-meeting/getMeetingByGroup', ars,false);
}

/**
 * 总负责人查看会议列表
 * {
	"current": 1,
	"pageSize": 10,
	"param": {
		"meetingName": "",
		"status": ""
	}
}
 */
export function getMeetingByLeader(ars) {
	return NetWorkTool.POST(`/api/party-meeting/getMeetingByLeader`, ars,false);
}

/**
 * @param {Object} ars
 */
export function getMeetingDetail(ars) {
	return NetWorkTool.POSTFORM(`/api/party-meeting/getMeetingDetail`, ars,true);
}

/**
 * @param {Object} ars
 */
export function monitorLeaderList(ars) {
	return NetWorkTool.POST(`/api/party-meeting-task/monitorLeaderList`, ars,true);
}

/**
 * @param {Object} ars
 */
export function collectMeeting(ars) {
	return NetWorkTool.POSTFORM(`/api/party-meeting/collectMeeting`, ars,true);
}

